package com.example.client.controller;

import com.example.client.config.GirlConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/girl")
public class GirlController {

    @Autowired
    private GirlConfig girlConfig;

    @RequestMapping("/age")
    public String findAge(){
        return girlConfig.getAge().toString();
    }
}
